package com.hk.patterntrains.commandpattern;

public class Light {

    private String name;

    public Light(String name) {
        this.name = name;
    }

    public void lightOn(){
        System.out.println(name + "is on");
    }

    public void lightOff(){
        System.out.println(name + "is off");
    }
}


